<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>麦咚网购</title>
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/searchList.css">
</head>

<body>
    <!-- 头部 -->
    <header id="header" class="mui-bar mui-bar-nav">
        <!-- <a class="fa h_left fa-arrow-left" href="./search.html"></a> -->
        <h1 class="mui-title">搜索列表</h1>
        <a href="javascript:;" class="mui-action-back fa fa-arrow-left h_left"> </a>
    </header>
    <!-- 内容 -->
    <div class="view">
        <div class="tuodong">
            <div class="search">
                <div class="search_form">
                    <input id="search_inp" placeholder="请搜索您喜欢的商品" type="text">
                    <button id="search_btn">搜索</button>
                </div>
            </div>
            <div class="sort_bar">
                <a href="javascript:;">上架时间&nbsp;
                    <span class="fa fa-angle-down"></span>
                </a>
                <a data-sortkey="price" href="javascript:;">价格&nbsp;
                    <span class="fa fa-angle-down"></span>
                </a>
                <a data-sortkey="num" href="javascript:;">销量&nbsp;
                    <span class="fa fa-angle-down"></span>
                </a>
                <a href="javascript:;">折扣&nbsp;
                    <span class="fa fa-angle-down"></span>
                </a>
            </div>
            <div class="goods_list">
                <ul></ul>
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <div class="footer">
        <a href="./index.html">
            <div class="fa fa-home"></div>
            <p>首页</p>
        </a>
        <a href="./category.html" class="active">
            <div class="fa fa-bars"></div>
            <p>分类</p>
        </a>
        <a href="./cart.html">
            <div class="fa fa-cart-plus"></div>
            <p>购物车</p>
        </a>
        <a href="javascript:;">
            <div class="fa fa-user"></div>
            <p>会员中心</p>
        </a>
    </div>
</body>
<script src="./assets/zepto/zepto.js"></script>
<script src="./assets/mui/js/mui.js"></script>
<script src="./assets/arttemplate/template-web.js"></script>
<script src="./js/common.js"></script>
<script src="./js/searchList.js"></script>
<script type="text/template" id="listTp">
    {{each arr value index}}
    <li>
        <img src="{{value.pic[0].picAddr}}" alt="">
        <div class="goods_name">{{value.proName}}</div>
        <div class="goods_price">
            <span class="new_price">￥{{value.price}}</span>
            <del>￥{{value.oldPrice}}</del>
        </div>
        <div>{{value.num}}</div>
        <a href="./product.html?productId={{value.id}}" class="mui-btn mui-btn-primary">立即购买</a>
    </li>
    {{/each}}
</script>

</html>